package com.ruoyi.workorder.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;

/**
 * 工单类别对象 workorders_catalog
 * 
 * @author renyuxin
 * @date 2024-05-28
 */
public class WorkordersCatalog extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 工单类别主键 */
    private Long woCatalogId;

    /** 工单类别名称 */
    @Excel(name = "工单类别名称")
    @NotBlank(message = "工单类别名称不能为空")
    @Length(min = 1, max = 50, message = "工单类别名称长度不能超过50个字符")
    private String woCatalogName;

    public void setWoCatalogId(Long woCatalogId) 
    {
        this.woCatalogId = woCatalogId;
    }

    public Long getWoCatalogId() 
    {
        return woCatalogId;
    }
    public void setWoCatalogName(String woCatalogName) 
    {
        this.woCatalogName = woCatalogName;
    }

    public String getWoCatalogName() 
    {
        return woCatalogName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("woCatalogId", getWoCatalogId())
            .append("woCatalogName", getWoCatalogName())
            .toString();
    }
}
